const fs = require('fs')
const { promisify } = require('util')
// const data = fs.readFileSync('./conf.js')
// console.log(data.toString())



// fs.readFile('./conf.js',(err,data) => {
//   if(err) throw new Error(err)
//   console.log(data.toString())
// })

const readFiles = promisify(fs.readFile)
process.nextTick(async() => {
  const data = await readFiles('./conf.js')
  console.log(data.toString())
})